﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _43继承
{
    class Siji:Fulei
    {
        public Siji(string name,int age,char gender,int jling)
            :base (name,age,gender)
        {
            this.Jling = jling;
        }

        public int _jling;
        public int Jling
        {
            get { return _jling; }
            set { _jling = value; }
        }

        public void Gong()
        {
            Console.WriteLine("我叫{0}，我是一名司机，我是{1}生，我今年{2}，我的驾龄是{3}年",this.Name,this.Gender,this.Age,this.Gender);
        }
    }
}
